class RebuildPagesIndex < ActiveRecord::Migration
  def self.up
    Page.find(:all).each do |page|
      page.send :generate_text_file
    end
    Page.rebuild_index
  end

  def self.down
  end
end
